package com.atguigu.feignService;

import com.atguigu.feign.FeignAgent;
import org.springframework.stereotype.Component;

/**
 * 限流或降级的回调类
 *
 *@ClassName: FullbackService
 *@Author: Administrator
 *@Date: 2020-10-19 21:56
 */
@Component
public class FeignAgentFallback implements FeignAgent {

    /**
     * 限流和降级的处理
     *
     * @Author: CJ
     * @Date: 2020-10-19 21:58
     * @return: java.lang.String
     */
    @Override
    public String feignHello() {
        return "Sorry，系统繁忙，请求稍后";
    }
}
